<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>Release Info</title>
    <link rel="stylesheet" type="text/css"
          href="${chrome.htdocs_location}css/roadmap.css" />
  </head>

  <body>
    <table>
      <tr>
        <th>id</th>
        <th>time</th>
        <th>branch</th>
        <th>component</th>
        <th>version</th>
        <th>milestone</th>
        <th>previous</th>
      </tr>
      <tr><td></td></tr>
      <py:for each="release_info in release_infos">
        <tr>
          <td>${release_info.id}</td>
          <td>${release_info.time}</td>
          <td>${release_info.branch}</td>
          <td>${release_info.component}</td>
          <td>${release_info.version}</td>
          <td>${release_info.milestone}</td>
          <td>${release_info.previous}</td>
        </tr>
      </py:for>
    </table>
    
    <fieldset>
      <legend>Add Release Info</legend>
      <form id="new_release_info_form" method="post" action="${req.href('releaseartifacts')}">
        <select name="previous">
          <option py:for="p in previouses">${p}</option>
        </select>
        <br/>
        <input name="time" value=""/>
        <br/>
        <select name="branch">
          <option py:for="b in branches">${b}</option>
        </select>
        <br/>
        <select name="component">
          <option py:for="c in components">${c.name}</option>
        </select>
        <br/>
        <select name="version">
          <option py:for="version in versions">${version}</option>
        </select>
        <br/>
        <select name="milestone">
          <option py:for="m in milestones">${m.name}</option>
        </select>
        <br/>
        <input type="submit" name="new_release_info" value="Add"/>
      </form>
    </fieldset>

  </body>
</html>
